package com.easyCms.base.service;

import com.easyCms.base.common.CodeConst;
import com.easyCms.base.dao.CrmUserAuthNavDAO;
import com.easyCms.base.entity.CrmUserAuthNav;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CrmUserAuthNavSV {
    @Autowired
    private CrmUserAuthNavDAO crmUserAuthNavDAO;

    public CrmUserAuthNav findByAuthType(int authType) {
        return crmUserAuthNavDAO.findByAuthTypeAndState(authType, CodeConst.State.STATE_VALID);
    }

}
